package com.white.hot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.white.hot.dto.resp.AppVersion;
import com.white.hot.dto.resp.BaseResp;
import com.white.hot.dto.resp.MapInfo;


@Controller
@RequestMapping("/app")
public class UpdateController extends BaseController
{
	@RequestMapping("/update_info")
	private @ResponseBody Object getUpdateInfo()
	{
		BaseResp bs = new BaseResp();
		MapInfo mi = new MapInfo();
		AppVersion av = new AppVersion();
		av.id = 1;
		av.addTime = "2017/03/03 18:15:25";
		av.details = "http://218.75.225.165/apk.r1.market.hiapk.com/data/upload/apkres/2017/2_23/11/com.qiyi.video_114406.apk?wsiphost=local";
		av.status = "0";
		av.name = "v1.1";
		av.code = 2;
		mi.appVersion = av;
		bs.setMapInfo(mi);
		return buildSuccessResp(bs);
	}
}
